package com.ttj.domain.oracle.gen;

import java.io.Serializable;
import java.util.Date;

public class SuperOrderPurchase implements Serializable {
    private Integer id;

    private Integer orderId;

    /**
     * 客户
     */
    private Integer cId;

    /**
     * 是否需要发票(0-不需要；1--需要）
     */
    private Integer isNeedInvoice;

    /**
     * 发票类型
     */
    private Integer invoiceType;

    /**
     * 采购方式（0--直接采购；1-委托加工）
     */
    private Integer pMethod;

    /**
     * 采购类型（0--办公；1--生产）
     */
    private Integer pType;

    /**
     * 采购总金额
     */
    private Double pMoney;

    /**
     * 采购优先级；数字越小优先级越高
     */
    private Integer pLevel;

    /**
     * 结算方式；（1-现金；2-转账；3-支票；4-存账）
     */
    private Integer jMethod;

    /**
     * 交货时间
     */
    private Date deliveryDate;

    /**
     * 备注
     */
    private String comments;

    /**
     * (0--未入库、1--已入库、2--入库退回)
     */
    private Integer isStatus;

    /**
     * (0--未审核、1--初审通过、2--复审通过、3--审核退回)
     */
    private Integer status;

    /**
     * (0--未核算、1--已核算)
     */
    private Integer fStatus;

    /**
     * 入库时间
     */
    private Date isTime;

    /**
     * 入库操作者
     */
    private String isAuthor;

    /**
     * 入库退回时间
     */
    private Date isReTime;

    /**
     * 入库退回操作者
     */
    private String isReAuthor;

    /**
     * 订单提交时间
     */
    private Date oIndate;

    /**
     * 订单创建者
     */
    private String oInAuthor;

    /**
     * 初审时间
     */
    private Date oOneAuditTime;

    /**
     * 初审者
     */
    private String oOneAuditAuthor;

    /**
     * 复审时间
     */
    private Date oTwoAuditTime;

    /**
     * 复审者
     */
    private String oTwoAuditAuthor;

    /**
     * 审核退回时间
     */
    private Date oAuditReTime;

    /**
     * 审核退回者
     */
    private String oAuditReAuthor;

    /**
     * 财务核算时间
     */
    private Date fTime;

    /**
     * 财务核算者
     */
    private String fAuthor;

    /**
     * 客户部门ID
     */
    private Integer cextId;

    /**
     * 客户电话
     */
    private String cphone;

    /**
     * 客户联系人
     */
    private String cperson;

    /**
     * 0-原始 1-可操作订单
     */
    private Integer israw;

    /**
     * 合同编号
     */
    private String contractNo;

    /**
     * 已结算金额
     */
    private Double fJMoney;

    /**
     * 上次结算时间
     */
    private Date fJsTime;

    /**
     * 发票抬头
     */
    private String invoiceName;

    /**
     * 发票金额
     */
    private Double invoiceMoney;

    /**
     * 地址
     */
    private String addr;

    /**
     * 1 自动 0手动
     */
    private Integer isauto;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getOrderId() {
        return orderId;
    }

    public void setOrderId(Integer orderId) {
        this.orderId = orderId;
    }

    /**
     * 客户
     */
    public Integer getcId() {
        return cId;
    }

    /**
     * 客户
     */
    public void setcId(Integer cId) {
        this.cId = cId;
    }

    /**
     * 是否需要发票(0-不需要；1--需要）
     */
    public Integer getIsNeedInvoice() {
        return isNeedInvoice;
    }

    /**
     * 是否需要发票(0-不需要；1--需要）
     */
    public void setIsNeedInvoice(Integer isNeedInvoice) {
        this.isNeedInvoice = isNeedInvoice;
    }

    /**
     * 发票类型
     */
    public Integer getInvoiceType() {
        return invoiceType;
    }

    /**
     * 发票类型
     */
    public void setInvoiceType(Integer invoiceType) {
        this.invoiceType = invoiceType;
    }

    /**
     * 采购方式（0--直接采购；1-委托加工）
     */
    public Integer getpMethod() {
        return pMethod;
    }

    /**
     * 采购方式（0--直接采购；1-委托加工）
     */
    public void setpMethod(Integer pMethod) {
        this.pMethod = pMethod;
    }

    /**
     * 采购类型（0--办公；1--生产）
     */
    public Integer getpType() {
        return pType;
    }

    /**
     * 采购类型（0--办公；1--生产）
     */
    public void setpType(Integer pType) {
        this.pType = pType;
    }

    /**
     * 采购总金额
     */
    public Double getpMoney() {
        return pMoney;
    }

    /**
     * 采购总金额
     */
    public void setpMoney(Double pMoney) {
        this.pMoney = pMoney;
    }

    /**
     * 采购优先级；数字越小优先级越高
     */
    public Integer getpLevel() {
        return pLevel;
    }

    /**
     * 采购优先级；数字越小优先级越高
     */
    public void setpLevel(Integer pLevel) {
        this.pLevel = pLevel;
    }

    /**
     * 结算方式；（1-现金；2-转账；3-支票；4-存账）
     */
    public Integer getjMethod() {
        return jMethod;
    }

    /**
     * 结算方式；（1-现金；2-转账；3-支票；4-存账）
     */
    public void setjMethod(Integer jMethod) {
        this.jMethod = jMethod;
    }

    /**
     * 交货时间
     */
    public Date getDeliveryDate() {
        return deliveryDate;
    }

    /**
     * 交货时间
     */
    public void setDeliveryDate(Date deliveryDate) {
        this.deliveryDate = deliveryDate;
    }

    /**
     * 备注
     */
    public String getComments() {
        return comments;
    }

    /**
     * 备注
     */
    public void setComments(String comments) {
        this.comments = comments;
    }

    /**
     * (0--未入库、1--已入库、2--入库退回)
     */
    public Integer getIsStatus() {
        return isStatus;
    }

    /**
     * (0--未入库、1--已入库、2--入库退回)
     */
    public void setIsStatus(Integer isStatus) {
        this.isStatus = isStatus;
    }

    /**
     * (0--未审核、1--初审通过、2--复审通过、3--审核退回)
     */
    public Integer getStatus() {
        return status;
    }

    /**
     * (0--未审核、1--初审通过、2--复审通过、3--审核退回)
     */
    public void setStatus(Integer status) {
        this.status = status;
    }

    /**
     * (0--未核算、1--已核算)
     */
    public Integer getfStatus() {
        return fStatus;
    }

    /**
     * (0--未核算、1--已核算)
     */
    public void setfStatus(Integer fStatus) {
        this.fStatus = fStatus;
    }

    /**
     * 入库时间
     */
    public Date getIsTime() {
        return isTime;
    }

    /**
     * 入库时间
     */
    public void setIsTime(Date isTime) {
        this.isTime = isTime;
    }

    /**
     * 入库操作者
     */
    public String getIsAuthor() {
        return isAuthor;
    }

    /**
     * 入库操作者
     */
    public void setIsAuthor(String isAuthor) {
        this.isAuthor = isAuthor;
    }

    /**
     * 入库退回时间
     */
    public Date getIsReTime() {
        return isReTime;
    }

    /**
     * 入库退回时间
     */
    public void setIsReTime(Date isReTime) {
        this.isReTime = isReTime;
    }

    /**
     * 入库退回操作者
     */
    public String getIsReAuthor() {
        return isReAuthor;
    }

    /**
     * 入库退回操作者
     */
    public void setIsReAuthor(String isReAuthor) {
        this.isReAuthor = isReAuthor;
    }

    /**
     * 订单提交时间
     */
    public Date getoIndate() {
        return oIndate;
    }

    /**
     * 订单提交时间
     */
    public void setoIndate(Date oIndate) {
        this.oIndate = oIndate;
    }

    /**
     * 订单创建者
     */
    public String getoInAuthor() {
        return oInAuthor;
    }

    /**
     * 订单创建者
     */
    public void setoInAuthor(String oInAuthor) {
        this.oInAuthor = oInAuthor;
    }

    /**
     * 初审时间
     */
    public Date getoOneAuditTime() {
        return oOneAuditTime;
    }

    /**
     * 初审时间
     */
    public void setoOneAuditTime(Date oOneAuditTime) {
        this.oOneAuditTime = oOneAuditTime;
    }

    /**
     * 初审者
     */
    public String getoOneAuditAuthor() {
        return oOneAuditAuthor;
    }

    /**
     * 初审者
     */
    public void setoOneAuditAuthor(String oOneAuditAuthor) {
        this.oOneAuditAuthor = oOneAuditAuthor;
    }

    /**
     * 复审时间
     */
    public Date getoTwoAuditTime() {
        return oTwoAuditTime;
    }

    /**
     * 复审时间
     */
    public void setoTwoAuditTime(Date oTwoAuditTime) {
        this.oTwoAuditTime = oTwoAuditTime;
    }

    /**
     * 复审者
     */
    public String getoTwoAuditAuthor() {
        return oTwoAuditAuthor;
    }

    /**
     * 复审者
     */
    public void setoTwoAuditAuthor(String oTwoAuditAuthor) {
        this.oTwoAuditAuthor = oTwoAuditAuthor;
    }

    /**
     * 审核退回时间
     */
    public Date getoAuditReTime() {
        return oAuditReTime;
    }

    /**
     * 审核退回时间
     */
    public void setoAuditReTime(Date oAuditReTime) {
        this.oAuditReTime = oAuditReTime;
    }

    /**
     * 审核退回者
     */
    public String getoAuditReAuthor() {
        return oAuditReAuthor;
    }

    /**
     * 审核退回者
     */
    public void setoAuditReAuthor(String oAuditReAuthor) {
        this.oAuditReAuthor = oAuditReAuthor;
    }

    /**
     * 财务核算时间
     */
    public Date getfTime() {
        return fTime;
    }

    /**
     * 财务核算时间
     */
    public void setfTime(Date fTime) {
        this.fTime = fTime;
    }

    /**
     * 财务核算者
     */
    public String getfAuthor() {
        return fAuthor;
    }

    /**
     * 财务核算者
     */
    public void setfAuthor(String fAuthor) {
        this.fAuthor = fAuthor;
    }

    /**
     * 客户部门ID
     */
    public Integer getCextId() {
        return cextId;
    }

    /**
     * 客户部门ID
     */
    public void setCextId(Integer cextId) {
        this.cextId = cextId;
    }

    /**
     * 客户电话
     */
    public String getCphone() {
        return cphone;
    }

    /**
     * 客户电话
     */
    public void setCphone(String cphone) {
        this.cphone = cphone;
    }

    /**
     * 客户联系人
     */
    public String getCperson() {
        return cperson;
    }

    /**
     * 客户联系人
     */
    public void setCperson(String cperson) {
        this.cperson = cperson;
    }

    /**
     * 0-原始 1-可操作订单
     */
    public Integer getIsraw() {
        return israw;
    }

    /**
     * 0-原始 1-可操作订单
     */
    public void setIsraw(Integer israw) {
        this.israw = israw;
    }

    /**
     * 合同编号
     */
    public String getContractNo() {
        return contractNo;
    }

    /**
     * 合同编号
     */
    public void setContractNo(String contractNo) {
        this.contractNo = contractNo;
    }

    /**
     * 已结算金额
     */
    public Double getfJMoney() {
        return fJMoney;
    }

    /**
     * 已结算金额
     */
    public void setfJMoney(Double fJMoney) {
        this.fJMoney = fJMoney;
    }

    /**
     * 上次结算时间
     */
    public Date getfJsTime() {
        return fJsTime;
    }

    /**
     * 上次结算时间
     */
    public void setfJsTime(Date fJsTime) {
        this.fJsTime = fJsTime;
    }

    /**
     * 发票抬头
     */
    public String getInvoiceName() {
        return invoiceName;
    }

    /**
     * 发票抬头
     */
    public void setInvoiceName(String invoiceName) {
        this.invoiceName = invoiceName;
    }

    /**
     * 发票金额
     */
    public Double getInvoiceMoney() {
        return invoiceMoney;
    }

    /**
     * 发票金额
     */
    public void setInvoiceMoney(Double invoiceMoney) {
        this.invoiceMoney = invoiceMoney;
    }

    /**
     * 地址
     */
    public String getAddr() {
        return addr;
    }

    /**
     * 地址
     */
    public void setAddr(String addr) {
        this.addr = addr;
    }

    /**
     * 1 自动 0手动
     */
    public Integer getIsauto() {
        return isauto;
    }

    /**
     * 1 自动 0手动
     */
    public void setIsauto(Integer isauto) {
        this.isauto = isauto;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", orderId=").append(orderId);
        sb.append(", cId=").append(cId);
        sb.append(", isNeedInvoice=").append(isNeedInvoice);
        sb.append(", invoiceType=").append(invoiceType);
        sb.append(", pMethod=").append(pMethod);
        sb.append(", pType=").append(pType);
        sb.append(", pMoney=").append(pMoney);
        sb.append(", pLevel=").append(pLevel);
        sb.append(", jMethod=").append(jMethod);
        sb.append(", deliveryDate=").append(deliveryDate);
        sb.append(", comments=").append(comments);
        sb.append(", isStatus=").append(isStatus);
        sb.append(", status=").append(status);
        sb.append(", fStatus=").append(fStatus);
        sb.append(", isTime=").append(isTime);
        sb.append(", isAuthor=").append(isAuthor);
        sb.append(", isReTime=").append(isReTime);
        sb.append(", isReAuthor=").append(isReAuthor);
        sb.append(", oIndate=").append(oIndate);
        sb.append(", oInAuthor=").append(oInAuthor);
        sb.append(", oOneAuditTime=").append(oOneAuditTime);
        sb.append(", oOneAuditAuthor=").append(oOneAuditAuthor);
        sb.append(", oTwoAuditTime=").append(oTwoAuditTime);
        sb.append(", oTwoAuditAuthor=").append(oTwoAuditAuthor);
        sb.append(", oAuditReTime=").append(oAuditReTime);
        sb.append(", oAuditReAuthor=").append(oAuditReAuthor);
        sb.append(", fTime=").append(fTime);
        sb.append(", fAuthor=").append(fAuthor);
        sb.append(", cextId=").append(cextId);
        sb.append(", cphone=").append(cphone);
        sb.append(", cperson=").append(cperson);
        sb.append(", israw=").append(israw);
        sb.append(", contractNo=").append(contractNo);
        sb.append(", fJMoney=").append(fJMoney);
        sb.append(", fJsTime=").append(fJsTime);
        sb.append(", invoiceName=").append(invoiceName);
        sb.append(", invoiceMoney=").append(invoiceMoney);
        sb.append(", addr=").append(addr);
        sb.append(", isauto=").append(isauto);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        SuperOrderPurchase other = (SuperOrderPurchase) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getOrderId() == null ? other.getOrderId() == null : this.getOrderId().equals(other.getOrderId()))
            && (this.getcId() == null ? other.getcId() == null : this.getcId().equals(other.getcId()))
            && (this.getIsNeedInvoice() == null ? other.getIsNeedInvoice() == null : this.getIsNeedInvoice().equals(other.getIsNeedInvoice()))
            && (this.getInvoiceType() == null ? other.getInvoiceType() == null : this.getInvoiceType().equals(other.getInvoiceType()))
            && (this.getpMethod() == null ? other.getpMethod() == null : this.getpMethod().equals(other.getpMethod()))
            && (this.getpType() == null ? other.getpType() == null : this.getpType().equals(other.getpType()))
            && (this.getpMoney() == null ? other.getpMoney() == null : this.getpMoney().equals(other.getpMoney()))
            && (this.getpLevel() == null ? other.getpLevel() == null : this.getpLevel().equals(other.getpLevel()))
            && (this.getjMethod() == null ? other.getjMethod() == null : this.getjMethod().equals(other.getjMethod()))
            && (this.getDeliveryDate() == null ? other.getDeliveryDate() == null : this.getDeliveryDate().equals(other.getDeliveryDate()))
            && (this.getComments() == null ? other.getComments() == null : this.getComments().equals(other.getComments()))
            && (this.getIsStatus() == null ? other.getIsStatus() == null : this.getIsStatus().equals(other.getIsStatus()))
            && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()))
            && (this.getfStatus() == null ? other.getfStatus() == null : this.getfStatus().equals(other.getfStatus()))
            && (this.getIsTime() == null ? other.getIsTime() == null : this.getIsTime().equals(other.getIsTime()))
            && (this.getIsAuthor() == null ? other.getIsAuthor() == null : this.getIsAuthor().equals(other.getIsAuthor()))
            && (this.getIsReTime() == null ? other.getIsReTime() == null : this.getIsReTime().equals(other.getIsReTime()))
            && (this.getIsReAuthor() == null ? other.getIsReAuthor() == null : this.getIsReAuthor().equals(other.getIsReAuthor()))
            && (this.getoIndate() == null ? other.getoIndate() == null : this.getoIndate().equals(other.getoIndate()))
            && (this.getoInAuthor() == null ? other.getoInAuthor() == null : this.getoInAuthor().equals(other.getoInAuthor()))
            && (this.getoOneAuditTime() == null ? other.getoOneAuditTime() == null : this.getoOneAuditTime().equals(other.getoOneAuditTime()))
            && (this.getoOneAuditAuthor() == null ? other.getoOneAuditAuthor() == null : this.getoOneAuditAuthor().equals(other.getoOneAuditAuthor()))
            && (this.getoTwoAuditTime() == null ? other.getoTwoAuditTime() == null : this.getoTwoAuditTime().equals(other.getoTwoAuditTime()))
            && (this.getoTwoAuditAuthor() == null ? other.getoTwoAuditAuthor() == null : this.getoTwoAuditAuthor().equals(other.getoTwoAuditAuthor()))
            && (this.getoAuditReTime() == null ? other.getoAuditReTime() == null : this.getoAuditReTime().equals(other.getoAuditReTime()))
            && (this.getoAuditReAuthor() == null ? other.getoAuditReAuthor() == null : this.getoAuditReAuthor().equals(other.getoAuditReAuthor()))
            && (this.getfTime() == null ? other.getfTime() == null : this.getfTime().equals(other.getfTime()))
            && (this.getfAuthor() == null ? other.getfAuthor() == null : this.getfAuthor().equals(other.getfAuthor()))
            && (this.getCextId() == null ? other.getCextId() == null : this.getCextId().equals(other.getCextId()))
            && (this.getCphone() == null ? other.getCphone() == null : this.getCphone().equals(other.getCphone()))
            && (this.getCperson() == null ? other.getCperson() == null : this.getCperson().equals(other.getCperson()))
            && (this.getIsraw() == null ? other.getIsraw() == null : this.getIsraw().equals(other.getIsraw()))
            && (this.getContractNo() == null ? other.getContractNo() == null : this.getContractNo().equals(other.getContractNo()))
            && (this.getfJMoney() == null ? other.getfJMoney() == null : this.getfJMoney().equals(other.getfJMoney()))
            && (this.getfJsTime() == null ? other.getfJsTime() == null : this.getfJsTime().equals(other.getfJsTime()))
            && (this.getInvoiceName() == null ? other.getInvoiceName() == null : this.getInvoiceName().equals(other.getInvoiceName()))
            && (this.getInvoiceMoney() == null ? other.getInvoiceMoney() == null : this.getInvoiceMoney().equals(other.getInvoiceMoney()))
            && (this.getAddr() == null ? other.getAddr() == null : this.getAddr().equals(other.getAddr()))
            && (this.getIsauto() == null ? other.getIsauto() == null : this.getIsauto().equals(other.getIsauto()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getOrderId() == null) ? 0 : getOrderId().hashCode());
        result = prime * result + ((getcId() == null) ? 0 : getcId().hashCode());
        result = prime * result + ((getIsNeedInvoice() == null) ? 0 : getIsNeedInvoice().hashCode());
        result = prime * result + ((getInvoiceType() == null) ? 0 : getInvoiceType().hashCode());
        result = prime * result + ((getpMethod() == null) ? 0 : getpMethod().hashCode());
        result = prime * result + ((getpType() == null) ? 0 : getpType().hashCode());
        result = prime * result + ((getpMoney() == null) ? 0 : getpMoney().hashCode());
        result = prime * result + ((getpLevel() == null) ? 0 : getpLevel().hashCode());
        result = prime * result + ((getjMethod() == null) ? 0 : getjMethod().hashCode());
        result = prime * result + ((getDeliveryDate() == null) ? 0 : getDeliveryDate().hashCode());
        result = prime * result + ((getComments() == null) ? 0 : getComments().hashCode());
        result = prime * result + ((getIsStatus() == null) ? 0 : getIsStatus().hashCode());
        result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
        result = prime * result + ((getfStatus() == null) ? 0 : getfStatus().hashCode());
        result = prime * result + ((getIsTime() == null) ? 0 : getIsTime().hashCode());
        result = prime * result + ((getIsAuthor() == null) ? 0 : getIsAuthor().hashCode());
        result = prime * result + ((getIsReTime() == null) ? 0 : getIsReTime().hashCode());
        result = prime * result + ((getIsReAuthor() == null) ? 0 : getIsReAuthor().hashCode());
        result = prime * result + ((getoIndate() == null) ? 0 : getoIndate().hashCode());
        result = prime * result + ((getoInAuthor() == null) ? 0 : getoInAuthor().hashCode());
        result = prime * result + ((getoOneAuditTime() == null) ? 0 : getoOneAuditTime().hashCode());
        result = prime * result + ((getoOneAuditAuthor() == null) ? 0 : getoOneAuditAuthor().hashCode());
        result = prime * result + ((getoTwoAuditTime() == null) ? 0 : getoTwoAuditTime().hashCode());
        result = prime * result + ((getoTwoAuditAuthor() == null) ? 0 : getoTwoAuditAuthor().hashCode());
        result = prime * result + ((getoAuditReTime() == null) ? 0 : getoAuditReTime().hashCode());
        result = prime * result + ((getoAuditReAuthor() == null) ? 0 : getoAuditReAuthor().hashCode());
        result = prime * result + ((getfTime() == null) ? 0 : getfTime().hashCode());
        result = prime * result + ((getfAuthor() == null) ? 0 : getfAuthor().hashCode());
        result = prime * result + ((getCextId() == null) ? 0 : getCextId().hashCode());
        result = prime * result + ((getCphone() == null) ? 0 : getCphone().hashCode());
        result = prime * result + ((getCperson() == null) ? 0 : getCperson().hashCode());
        result = prime * result + ((getIsraw() == null) ? 0 : getIsraw().hashCode());
        result = prime * result + ((getContractNo() == null) ? 0 : getContractNo().hashCode());
        result = prime * result + ((getfJMoney() == null) ? 0 : getfJMoney().hashCode());
        result = prime * result + ((getfJsTime() == null) ? 0 : getfJsTime().hashCode());
        result = prime * result + ((getInvoiceName() == null) ? 0 : getInvoiceName().hashCode());
        result = prime * result + ((getInvoiceMoney() == null) ? 0 : getInvoiceMoney().hashCode());
        result = prime * result + ((getAddr() == null) ? 0 : getAddr().hashCode());
        result = prime * result + ((getIsauto() == null) ? 0 : getIsauto().hashCode());
        return result;
    }
}